#include <iostream>

int main()
{
	using namespace std;
	//输出随编译器、硬件和操作系统而变化
	cout << "bool-" << sizeof(bool) << endl;//1
	cout << "char-" << sizeof(char) << endl;//1
	//C++中short关键字用于声明short int类型的变量
	cout << "short-" << sizeof(short) << endl;//2
	cout << "short int-" << sizeof(short int) << endl;//2
	cout << "unsigned short-" << sizeof(unsigned short) << endl;//2
	cout << "unsigned short int-" << sizeof(unsigned short int) << endl;//2
	//
	cout << "int-" << sizeof(int) << endl;//4
	cout << "unsigned int-" << sizeof(unsigned int) << endl;//4
	//
	cout << "long- " << sizeof(long) << endl;//4
	cout << "unsigned long-" << sizeof(unsigned long) << endl;//4
	cout << "unsigned long int-" << sizeof(unsigned long int) << endl;//4
	//
	cout << "long long-" << sizeof(long long) << endl;//8
	cout << "unsigned long long-" << sizeof(unsigned long long) << endl;//8
	//
	cout << "float-" << sizeof(float) << endl;//4
	cout << "double-" << sizeof(double) << endl;//8

	return 0;
}